home *** CD-ROM | disk | FTP | other *** search
- Path: cyberus.ca!news
- From: Brian Lawless <brian@cyberus.ca>
- Newsgroups: comp.lang.c++
- Subject: Help!! floating point error??
- Date: Tue, 20 Feb 1996 17:50:54 -0500
- Organization: University of Ottawa, Computer Science Student
- Message-ID: <312A504E.55A@cyberus.ca>
- NNTP-Posting-Host: dialup102.cyberus.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (Win95; I)
- CC: brian@cyberus.ca
-
- I seam to have buggered up the ability of Borland C++(ver 4.5) to read in
- floating point numbers on this machine. I am not having the same problem
- when I run microsoft's visual C++ with my test code on the same machine.
- This leads me to believe that the problem is isoloated with the Borland C++
- settings.
-
- This is my very simple test code that I am using to track down this pesky
- problem.
-
- #include <iostream.h>
- int main()
- {
- float myfloat;
- cout << "Float: ";
- cin >> myfloat;
- cout << "\N" << myfloat;
- return 0;
- }
-
- result: "floating point:overflow"
-
- I am very,very interested in any suggestions people might have to fix the
- problem or alternatively any suggestions as to suitable reference material.
-
- Please note that I am also running Windows 95 with 8 megs of RAM.
-
- Thanks a bunch,
-
- Brian
-